﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace T.Settlement.Repository
{
    /// <summary>
    /// 仓储接口
    /// </summary>
    public interface ISBaseRepository<T> where T : class,new()
    {
        Task<int> AddAsync(T entity);
        Task<int> Update(T entity);
        Task<int> UpdateRange(List<T> entities);
        Task<T> GetModelAsync(int id);
        Task<List<T>> GetAllAsync();
        Task<List<T>> GetAsync(Expression<Func<T, bool>> expre);
    }
}
